package com.blogs.ui;


import com.blogs.component.BaseActivity;
import com.blogs.tools.Tools;
import com.cnblogs.R;

import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;

public class AboutActivity extends BaseActivity{
	private TextView title_include_title;
	private Button title_include_back;
	private TextView about_version;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.about);
		ViewGroup headview=(ViewGroup)findViewById(R.id.main_title_include);
		title_include_title=(TextView)headview.findViewById(R.id.title_include_title);
		title_include_back=(Button)headview.findViewById(R.id.title_include_back);
		title_include_title.setText("关于");
		title_include_back.setVisibility(View.VISIBLE);
		title_include_back.setOnClickListener(new OnClickListener() {
			
			public void onClick(View v) {
				// TODO Auto-generated method stub
				finish();
			}
		});
		about_version=(TextView)findViewById(R.id.about_version);
		about_version.setText(Tools.GetPackageInfo(this).versionName);
	}
}
